<?php
/**
 * Intreface DAO
 *
 * @author: Ali
 * @date: 2012-04-01 17:54
 */
interface CONTACTDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return CONTACT 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param cONTACT primary key
 	 */
	public function delete($id);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param CONTACT cONTACT
 	 */
	public function insert($cONTACT);
	
	/**
 	 * Update record in table
 	 *
 	 * @param CONTACT cONTACT
 	 */
	public function update($cONTACT);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByHEADINGEN($value);

	public function queryByNAMEEN($value);

	public function queryByEMAILEN($value);

	public function queryByTEXTEN($value);

	public function queryByBUTTONEN($value);

	public function queryByHEADINGSV($value);

	public function queryByNAMESV($value);

	public function queryByEMAILSV($value);

	public function queryByTEXTSV($value);

	public function queryByBUTTONSV($value);


	public function deleteByHEADINGEN($value);

	public function deleteByNAMEEN($value);

	public function deleteByEMAILEN($value);

	public function deleteByTEXTEN($value);

	public function deleteByBUTTONEN($value);

	public function deleteByHEADINGSV($value);

	public function deleteByNAMESV($value);

	public function deleteByEMAILSV($value);

	public function deleteByTEXTSV($value);

	public function deleteByBUTTONSV($value);


}
?>